VERSION 5.00 Begin VB.Form frmFileCopy BorderStyle = 1 'Fixed Single Caption = "File Copy Demo - Windows / DOS" ClientHeight = 2280 ClientLeft = 45 ClientTop = 330 ClientWidth = 5790 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 2280 ScaleWidth = 5790 StartUpPosition = 3 'Windows Default Begin VB.CommandButton cmdQuit Caption = "&Quit" Height = 435 Left = 4380 TabIndex = 8 Top = 1620 Width = 1215 End Begin VB.CommandButton cmdCopy Caption = "&Copy" Height = 435 Left = 3180 TabIndex = 7 Top = 1620 Width = 1215 End Begin VB.Frame Frame1 Caption = "Copy using:" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 735 Left = 180 TabIndex = 4 Top = 1320 Width = 2775 Begin VB.OptionButton optWin Caption = "Windows" Height = 255 Left = 1380 TabIndex = 6 Top = 360 Width = 1155 End Begin VB.OptionButton optDos Caption = "DOS" Height = 255 Left = 300 TabIndex = 5 Top = 360 Width = 915 End End Begin VB.TextBox txtDestination Height = 300 Left = 1500 TabIndex = 3 Text = "Enter Destination File Path" Top = 825 Width = 4095 End Begin VB.TextBox txtSource Height = 300 Left = 1500 TabIndex = 2 Text = "Enter Source File Path" Top = 285 Width = 4095 End Begin VB.Label lblDestination Caption = "Destination:" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 240 TabIndex = 1 Top = 855 Width = 2175 End Begin VB.Label lblSource Caption = "Source:" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 240 TabIndex = 0 Top = 315 Width = 2175 End Attribute VB_Name = "frmFileCopy" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Private Sub cmdCopy_Click() If optWin.Value = True Then WinFileCopy txtSource.Text, txtDestination.Text Else DosFileCopy txtSource.Text, txtDestination.Text End If End Sub Private Sub cmdQuit_Click() Unload Me End Sub Private Sub Form_Load() optWin.Value = True optDos.Value = False End Sub Private Sub Form_Unload(Cancel As Integer) Set frmFileCopy.Icon = Nothing Set frmFileCopy = Nothing End Sub